package com.chalk.service;

import com.baomidou.mybatisplus.service.IService;
import com.chalk.model.Ticket;

import java.util.List;


/**
 * <p>
 * 服务类
 * </p>
 *
 * @author glq
 * @since 2020-12-24
 */

public interface TicketService extends IService<Ticket> {
    /**
     * 新增
     */
    public int addTicket(Ticket entity);

    /**
     * 修改
     */
    public int updateTicket(Ticket entity);

    /**
     * 删除
     */
    public int deleteTicket(Integer id);

    /**
     * 小程序-根据票类型获取票
     * @param ticketTypeId
     * @param venueId
     * @return
     */
    public List<Ticket> getTicketsByTicketTypeId(Integer ticketTypeId,Integer venueId);
}
